<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var word=["American","Green","Britain","Canada","China"];
			var num=0;
			for(i=0;i<word.length;i++){
				var a=word[i].indexOf("a"||"A")
				if(a!=-1){
					num++;
				}
			}alert(num);
		</script>
	</body>
</html>
